﻿using System.ComponentModel.DataAnnotations;
using Kratos.Framework.Filters.ModelMetadata;

namespace Kratos.Framework.ContentManagement.ViewModels
{
    public class LogModel
    {
        [Required(ErrorMessage = "用户名不能为空")]
        [StyleEditor("userName", DisplayName = "用户名")]
        public string UserId { get; set; }

        [Required(ErrorMessage = "密码不能为空")]
        [DataType(DataType.Password)]
        [StyleEditor(DisplayName = "密码")]
        public string Password { get; set; }

        [ScaffoldColumn(false)]
        public string ReturnUrl { get; set; }

        [StyleEditor("validate-code", DisplayName = "验证码")]
        [Required(ErrorMessage = "验证码不能为空")]
        public string ValidateCode { get; set; }
    }
}
